<template>
  <iframe v-bind:src="url" frameborder="0" style="width: 100%; height: 100%;" scrolling="auto"></iframe>
</template>

<script>
import {ref, unref, getCurrentInstance, watch, reactive, onMounted} from "vue";
import {ElMessage, ElMessageBox} from 'element-plus';
import {useRouter} from "vue-router";
import APP_CONFIG from "@/config/config";

export default {
  name: "index",
  props: [""],
  emits: [""],
  components: {},
  setup(props, content) {
    const router = useRouter()
    const {proxy} = getCurrentInstance();
    let data = {
      url:  ref(APP_CONFIG.VUE_APP_API_HOST_DEFAULT + "/doc.html"),
    }
    //监听
    watch(() => [props.info], ([newInfo], [oldInfo]) => {
      // if (newInfo){
      //   Object.assign(data.form, newInfo)
      // content.emit('update:info',newInfo)
      // }
    })
    onMounted(async () => {

    })
    let methods = {}

    return {
      proxy,
      router,
      ...data,
      ...methods
    }
  }
}
</script>
<style scoped lang="scss">

</style>